<template>
  <div class="empty-state">
    <img src="/imgs/home/emptyNo.webp" alt="">
    <p class="empty-text">{{ text || '暂无数据' }}</p>
    <span>{{ t('inside_page_no_null_data_tip') }}</span>
  </div>
</template>

<script setup lang="ts">
import { defineProps } from 'vue'
import { useI18n } from "vue-i18n";
const { t } = useI18n();
defineProps<{
  text?: string
}>()
</script>

<style lang="scss" scoped>
.empty-state {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  img {
    width: 88px;
    height: 88px;
    margin-bottom: 8px;
  }

  .empty-text {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    text-align: center;
  }
}
</style>
